<template>
  <div>
    <router-view></router-view>
    <br /><br /><br />

    <van-tabbar route>
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/cate" icon="apps-o">分类</van-tabbar-item>
      <van-tabbar-item to="/add" icon="edit">发布</van-tabbar-item>
      <van-tabbar-item to="/user" icon="user-circle-o">{{token?'我的':'未登录'}}</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import {mapGetters} from 'vuex'
export default {
  data() {
    return {};
  },
  computed:{
    ...mapGetters(['token'])
  }
};
</script>

<style>
</style>